﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace Autocentro.Entities
{
    public class MARCA:BaseEntity
    {
        public MARCA()
        {
            this.VEHICULOs = new List<VEHICULO>();
        }

        public Int32 Id { get; set; }

        [Display(Name = "Descripcion")]
        [Required(ErrorMessage = "La Descripción es requerida")]
        public string Descripcion { get; set; }
        
        public override string ToString()
        {
            return Descripcion;
        }

        public virtual ICollection<VEHICULO> VEHICULOs{ get; set; }

    }
}
